﻿
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "AIConfig", menuName = "Asset/Core/Role/AIConfig")]
public class AIConfigSO : ScriptableObject
{
    public List<AIConfig> aIConfigs = new List<AIConfig>();
    public GameObject GetAIPrefab(GameAI aIName)
    {
        var aiConfig = aIConfigs.Find(i => i.AIName == aIName);
        if (aiConfig == null)
        {
            return null;
        }
        return aiConfig.AIPrefab;
    }
}
[System.Serializable]
public class AIConfig
{
    public GameAI AIName;
    public GameObject AIPrefab;
}

